using System;
using System.Data;
using System.Collections;
using System.Collections.Specialized;
using FluentNHibernate.Mapping;
using Novapangeia.Dominio;

namespace NovaPangeia.Mapping
{
    public class ConstrucaoMapping : ClassMap<Construcao>
    {
        public ConstrucaoMapping()
        {
            Table("construcao");

            Id(x => x.Id, "id").UnsavedValue(0);
            //Map(x => x.Usuario_id, "");
            Map(x => x.Muralha, "muralha");
            Map(x => x.Torres, "torres");
            Map(x => x.Armazem, "armazem");
            Map(x => x.Estabulo, "estabulo");
            Map(x => x.Quartel, "quartel");
            Map(x => x.Mercado, "mercado");
            Map(x => x.Mina, "mina");
            Map(x => x.Fazenda, "fazenda");
            Map(x => x.Serraria, "serraria");

            References(x => x.Usuario, "usuario_id");
        }
    }
}